﻿namespace ActionGraph.Core
{
    /// <summary>
    /// 继承该节点的节点有一个in,out口,并且在该节点不做停留
    /// </summary>
    [NodeHideInCreateMenu]
    public class FlowActionNode : ActionNode
    {
        [Input (ShowBackingValue.Never)] public byte In;
        [Output]                         public byte Out;

        protected sealed override bool OnExcute ()
        {
            ExitNode ("Out");
            DoFlowExcute ();
            return true;
        }

        protected virtual void DoFlowExcute () { }
    }
}